﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DispatchAssist.BusinessLogical.Model
{
    /// <summary>
    /// SeatRole
    /// </summary>
    public class SeatRole
    {
        /// <summary>
        /// SeatRole 构造函数
        /// </summary>
        public SeatRole()
        { }


        /// <summary>
        /// SeatRole OR映射构造函数
        /// </summary>
        public SeatRole(System.Data.IDataReader dr)
        {
            this.RoleID = (Guid)dr["RoleID"];
            this.RoleName = Convert.ToString(dr["RoleName"]);
            this.PowerFlag = Convert.ToInt32(dr["PowerFlag"]);
            this.LastModifyTime = Convert.ToDateTime(dr["LastModifyTime"]);
            this.DeleteFlag = Convert.ToBoolean(dr["DeleteFlag"]);
        }


        /// <summary>
        /// 唯一编号
        /// </summary>
        public Guid RoleID { get; set; }

        /// <summary>
        /// 角色名称
        /// </summary>
        public string RoleName { get; set; }

        /// <summary>
        /// 角色权限标志位
        /// </summary>
        public int PowerFlag { get; set; }


        /// <summary>
        /// 角色权限
        /// </summary>
        public string Powers { get; set; }

        /// <summary>
        /// 最后修改时间
        /// </summary>
        public DateTime LastModifyTime { get; set; }

        /// <summary>
        /// 逻辑删除标记
        /// </summary>
        public bool DeleteFlag { get; set; }


        public override string ToString()
        {
            return string.Format("[角色名称：{0}]", this.RoleName);
        }

    }
}
